
import request from '@/utils/request'

// 功能配置列表
export function listFunctionConfig(query) {
  return request({
    url: '/sys/sysFunctionSettingApi/list',
    method: 'post',
    params: query
  })
}

// 功能配置新增
export function addFunctionConfig(data) {
  return request({
    url: '/sys/sysFunctionSettingApi/add',
    method: 'post',
    data
  })
}

// 功能配置更新
export function updateFunctionConfig(data) {
  return request({
    url: '/sys/sysFunctionSettingApi/update',
    method: 'post',
    data
  })
}

// 功能配置详情
export function detailFunctionConfig(id) {
  return request({
    url: `/sys/sysFunctionSettingApi/get/${id}`,
    method: 'get'
  })
}

// 功能配置删除
export function removeFunctionConfig(params) {
  return request({
    url: `/sys/sysFunctionSettingApi/remove`,
    method: 'post',
    params
  })
}
